<%--
  Created by IntelliJ IDEA.
  User: LX
  Date: 2017/5/27
  Time: 11:38
--%>
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/bb214079/Report_079"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="Report_079"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>组别名称：</label>
            <input type="text" name="stageId" value="${stageId}"/>
            <a href="${request.getContextPath()}/bb214079/Report_079stepTwo" type="button" data-toggle="navtab"
               data-id="dialog-normal" data-options="{id:'table79img', title:'分组统计'}">分组统计</a>
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/bb214/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true"
           class="table table-bordered table-hover table-striped table-top">
        <thead>
        <tr>
            <g:each in="${tableHeadList}" status="j" var="headInstance">
                <g:if test="${headInstance != 'RN'}">
                    <th width="125"><g:message code="${headInstance}" default="${headInstance}"/></th>
                </g:if>
            </g:each>
        </tr>
        </thead>
        <tbody>
        <g:each in="${Report_079}" status="i" var="dataInstance">
            <tr>
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance != 'RN'}">
                        <g:if test="${headInstance == 'WIP_QTY'}">
                            <td><a href="${request.getContextPath()}/bb214079/Report_079step?stageId=<%=dataInstance.STAGE_DESC%>"
                                   data-toggle="navtab" data-id="dialog-normal"
                                   data-options="{id:'table79', title:'在制品分布'}">${dataInstance["${headInstance}"]}</a>
                            </td>
                        </g:if>
                        <g:else>
                            <td>${dataInstance["${headInstance}"]}</td>
                        </g:else>
                    </g:if>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
<g:render template="../template/pagination"/>
